/*
 * EasyBounceMainView.h
 *
 *  Created on: 2009-3-14
 *      Author: Wayne
 */

#ifndef EASYBOUNCEMAINVIEW_H_
#define EASYBOUNCEMAINVIEW_H_

// INCLUDES
#include <aknview.h>

// CONSTANTS
// UID of view
const TUid KMainViewId = {1};

class CEasyBounceMainContainer;

// CLASS DECLARATION
class CEasyBounceMainView : public CAknView
	{
public:
	// New methods
	
	// Constructors
	void ConstructL();

	/**
	 * CEasyBounceMainView.
	 * C++ default constructor.
	 */
	CEasyBounceMainView();
	

	/**
	 * ~CEasyBounceMainView
	 */
	~CEasyBounceMainView();

public:
	// Functions from base classes
    
    /**
    * Return Uid
    */
    TUid Id() const;

    /**
    * Handle Commands
    */
    void HandleCommandL(TInt aCommand);

    /**
    * Handle Size changes
    */
    void HandleClientRectChange();
    
public:
	// New Functions
	
	/**
	 * Handle Command: New Game
	 */
	void CmdNewGameL();

private:

    /**
    * From AknView, Activates view
    */
    void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
        const TDesC8& aCustomMessage);

    /**
    * From AknView, Deactivates view
    */
    void DoDeactivate();

private:
	
	CEasyBounceMainContainer* iContainer;

	};

#endif /* EASYBOUNCEMAINVIEW_H_ */
